class OuterClass{
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;

    //实例内部类
    //不能定义静态的属性或者方法
    class InnerClass{
        public int data1 = 111;

        public int data4 = 4;
        private int data5 = 5;
        public  static final int data6 = 6;
        //构造方法
        public InnerClass(){
            System.out.println("InnerClass::init()");
        }
        public void test(){
            System.out.println(data1);
        }
    }

    public void func(){
        System.out.println("OuterClass::func()");
    }
}


public class Test1 {
    public static void main(String[] args) {

    }
}
